﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OAuth.EFCore.Common
{
    public static class Extension
    {
        public static void Create<T>(this T t)
        {
            t.GetType().GetProperties().ToList().ForEach(r=> {
                if (r.Name == "createTime")
                    r.SetValue(t, DateTime.Now);
            });
        }
    }
}
